Skip to content

ResponseBuilder class. #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 9, 2016
Merged

ResponseBuilder class. #30

merged 2 commits into from
Feb 9, 2016

Conversation

mekras
Copy link
Contributor

@mekras mekras commented Jan 29, 2016

client-tools repo was removed, so I recreated PR for ResponseBuilder here.

Not sure about spec file because I'm not familiar with PhpSpec.

@joelwurtz
Copy link
Member

Don't really understand the purpose of such builder ? Why not using a response factory or directly the response ?

@mekras
Copy link
Contributor Author

mekras commented Feb 9, 2016

@joelwurtz, we have response factory which can do this?

The purpose is reuse of implementation independent code. It was discussed in original PR. Parsing headers is a common task for HTTP client (similar code in socket and curl clients). Also it can be used by third-party libs. For example I need to create HttpMessage instances from HTTP dumps and so can use this functionality.

@joelwurtz
Copy link
Member

Hum didn't read well the code, my bad ^^

LGTM 👍

joelwurtz added a commit that referenced this pull request Feb 9, 2016
@joelwurtz joelwurtz merged commit 64e8618 into php-http:master Feb 9, 2016
@mekras mekras deleted the response_builder branch March 23, 2016 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants